import request from '@/utils/request'

// 查询打印模板列表
export function listPrint(query) {
  return request({
    url: '/print/print/list',
    method: 'get',
    params: query
  })
}

// 查询打印模板详细
export function getPrint(id) {
  return request({
    url: '/print/print/' + id,
    method: 'get'
  })
}

// 新增打印模板
export function addPrint(data) {
  return request({
    url: '/print/print',
    method: 'post',
    data: data
  })
}

// 修改打印模板
export function updatePrint(data) {
  return request({
    url: '/print/print',
    method: 'put',
    data: data
  })
}

// 删除打印模板
export function delPrint(id) {
  return request({
    url: '/print/print/' + id,
    method: 'delete'
  })
}

// 导出打印模板
export function exportPrint(query) {
  return request({
    url: '/print/print/export',
    method: 'get',
    params: query
  })
}